/*
 * Copyright 2008-2023 dexian.vip. All rights reserved.
 * Support: http://www.dexian.vip
 * License: http://www.dexian.vip/license
 */

package vip.dexian.core.config.oss;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * OSS对象存储配置
 *
 * @author 挺好的 2023年06月01日 11:33
 */
@ConfigurationProperties ("oss")
@Component ("ossProperties")
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode (callSuper = false)
public class OssProperties {

    /**
     * Access Key
     */
    private String accessKeyId;

    /**
     * Access Secret
     */
    private String accessKeySecret;

    /**
     * 地域节点
     */
    private String endPoint;

    /**
     * Bucket name
     */
    private String bucketName;

    /**
     * 文件访问URL，http://www.a.com
     */
    private String bucketHost;
}
